package com.petshop.service;

import java.util.List;

import com.petshop.dao.ProductDao;
import com.petshop.dao.ProductDaoImpl;
import com.petshop.model.Product;

public class ProductServiceImpl implements ProductService {

	@Override
	public List<Product> getNewProductList() {
		
		ProductDao productDao = new  ProductDaoImpl();
		List<Product> products = productDao.getNewProductList();
		
		return products;
	}

	@Override
	public List<Product> getRateProductList() {
		
		ProductDao productDao = new  ProductDaoImpl();
		List<Product> products = productDao.getRateProductList();
		
		return products;
	}

	@Override
	public List<Product> getAllProductList() {
		
		ProductDao productDao = new  ProductDaoImpl();
		List<Product> products = productDao.getAllProductList();
		
		return products;
	}

	
}
